diff options
Diffstat (limited to 'src/app/api/auth/[...all]/route.ts')
| -rw-r--r-- | src/app/api/auth/[...all]/route.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/api/auth/[...all]/route.ts b/src/app/api/auth/[...all]/route.ts new file mode 100644 index 0000000..677b24c --- /dev/null +++ b/src/app/api/auth/[...all]/route.ts @@ -0,0 +1,4 @@ +import { auth } from '@/server/auth'; +import { toNextJsHandler } from 'better-auth/next-js'; + +export const { POST, GET } = toNextJsHandler(auth); |
